home *** CD-ROM | disk | FTP | other *** search
- #This macro will load a customized GEnie set-up file and dial w/login.
- #Be sure control codes sent to modem are correct for your equipment.
-
- me('Setting modem echo to OFF,timeout to 17 sec.') w(20)
- se('atz\r\n') w(10) se('ate0\r\n') w(10) se('ats7=17\r\n') w(10)
- me('Loading GEnie set-up file') w(05) Loadsetup('genie.set')
- #This macro will redial w/prompt for retry number.
- me('Dialing GEnie BBS. Will re-dial w/prompt for retries') w(20)
- #The following code contains the phone number and sets re-dial countdown:
- se('atdt \r\n') w(05) set(1,1) set(2,0)
- #Following looking for first message from online to respond to:
- if(!get('CONNECT',20)) ca(1)
- #Put log-on codes here.
- W(10) se('h') w(05) se('h') w(05) se('h\n')
- get('U#=',10) w(10)
- send(' , \r\n') w(10)
- #Start history and end macro.
- history(1) me('History recording is on') w(20) exit(0)
- :1
- #1st fail and re-dial message.
- ec('Failed!\r\n') w(05) se('\n')
- #If # and OK, go on (User enters num. of times to re-dial). If Cancel, exit.
- if(!input('Retries? Enter #1-?+Ret. or Cancel')) ec('Quit!\n') exit(0)
- #Check to see if $T is "0". Yes=quit, No=go on.
- if(com($T,'0')) ec('Quit. FINISHED!\r\n') exit(0)
- #Use # in $T to set re-try counter.
- set(1,.$T)
- #Place number in "Wait" command 3 seconds less than re-dial timeout.
- me('Re-dial in 30 seconds.') w(270)
- :2
- #Re-dial count, display, and check follows: @1= retry countdown @2=retry#,
- #"$T"=current re-try display count.
- #Display total remaining user re-tries on next line:
- ec("@1) ec(' re-dial remains:\n') w(05)
- set(1,add(@1,-1)) set(2,add(@2,1)) con('RETRY# ',"@2') ec($T) ec('\r\n')
- mess('Re-dialing GEnie BBS. Cntrl-C aborts. NOW!') w(30)
- me('Dialing...') send('atdt \r\n')
- #Timeout for re-dial and success/fail. "ju(4)"=fail
- if(!ge('CONNECT',35)) ju(4)
- #If success, will return to log-in code near beginning.
- return( )
- :4
- #Look for count in @1 for "0". If not, re-dial.
- #If so, prompt for more retries.
- if(com("@1','0')) ca(5)
- #Failed and redial message for all until last prompt.
- ec('Failed!\r\n') w(10) se('\n') me('Re-dial in 30 sec.') w(270) ju(2)
- :5
- #Prompt to try again or stop and end macro.
- ec('Failed! More retries?\r\n') w(05) se('\n')
- #User clicks "OK", will loop re-dial routine.
- #Prompt for re-try #. "set" for variable int. @1 to # entered by user.
- #If "Cancel" is clicked, message, and end.
- if(input('Retries failed. Try again? Enter#1-?')) ju(6)
- ec('ALL RETRIES FAILED! FINISHED.\r\n') w(10) exit(0)
- :6
- #Check to see if $T is "0". Yes=quit, No=go on.
- if(com($T,'0')) ec('Quit. FINISHED!\n') exit(0)
- #Make "set" for variable "@1" user number.
- w(05) set(1,.$T) ju(2)
-